package com.doyens.gmall.product.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.doyens.gmall.model.product.BaseTrademark;

import java.util.List;

/**
 * Classname:BaseTrademarkService
 * PackageName:com.doyens.gmall.product.service
 *
 * @Author:uyijk
 * @Create:2023/7/26 15:13
 * @Version: 1.0
 */
public interface BaseTrademarkService {
    IPage<BaseTrademark> getPage(Long page, Long size);

    void save(BaseTrademark baseTrademark);

    void deleteById(Long id);

    BaseTrademark getById(Long id);

    List<BaseTrademark> getTrademarkList();

    /**
     * 通过品牌Id 来查询数据
     * @param tmId
     * @return
     */
    BaseTrademark getTrademarkByTmId(Long tmId);

}
